package com.tangx.article.controller;

import com.tangx.article.service.ArticleHomeService;
import com.tangx.model.article.dtos.ArticleInfoDto;
import com.tangx.model.common.dtos.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/api/v1/article")
public class ArticleHomeController {

    @Autowired
    ArticleHomeService articleHomeService;

    @PostMapping("/load_article_behavior")
    public ResponseResult loadArticleBehavior(@RequestBody ArticleInfoDto dto){
        return articleHomeService.loadArticleBehavior(dto);
    }
}
